package com.jysz.webcore.ssh.orm.hibernate.mysql;

import org.hibernate.dialect.function.StandardSQLFunction;
import org.hibernate.type.StandardBasicTypes;

public class MySQL5Dialect extends org.hibernate.dialect.MySQL5Dialect {

	public MySQL5Dialect() {
		super();
		
		registerFunction("f_right_move", new RightMoveFunction());
		registerFunction("f_left_move", new LeftMoveFunction());
		registerFunction("f_and", new AndFunction());
		registerFunction("useindex", new StandardSQLFunction("useindex", StandardBasicTypes.BOOLEAN));
		registerFunction("replacetable", new StandardSQLFunction("replacetable", StandardBasicTypes.BOOLEAN));
	}
}
